# (c) 2008 by Florina Nacu < florina@omnidatagrup.ro >

project(Model)

include_directories(BEFORE "${CMAKE_SOURCE_DIR}/libs")

set(Model_SRCS modelplugin.cpp model.cpp)
QT4_WRAP_CPP(Model_SRCS modelplugin.h model.h)
QT4_WRAP_UI(Model_SRCS model.ui)
QT4_ADD_RESOURCES(Model_SRCS model.qrc)

add_library(Model SHARED ${Model_SRCS})
add_dependencies(Model KontAMabil)
link_directories( "${CMAKE_SOURCE_DIR}/libs" )
target_link_libraries(Model KontAMabil ${QT_LIBRARIES})

install(TARGETS Model  ${INSTALL_PLUGINS_DEFAULT_ARGS})
